<load target="../../admin/tpl/js/admin.js" usecdn="true" />
<load target="../../admin/tpl/css/admin.css" usecdn="true" />
<load cond="$lang_type=='ko'" target="../../admin/tpl/css/admin_ko.css" usecdn="true" />
<load cond="$lang_type=='en'" target="../../admin/tpl/css/admin_en.css" usecdn="true" />
<load target="js/generate_code.js" usecdn="true" />

<script type="text/javascript">
	xe.lang.cmd_delete = '{$lang->cmd_delete}';

	jQuery(document).ready(function(){
		doFillWidgetVars();
	});
</script>

<div cond="$type=='faceoff'" class="x" style="padding: 0 10px;">
	<form class="form">
	<input type="hidden" name="module" value="widget" />
	<input type="hidden" name="type" value="faceoff" />
	<input type="hidden" name="act" value="dispWidgetGenerateCodeInPage" />
	<input type="hidden" name="error_return_url" value="" />

	<h2 class="h2">{$lang->widget}</h2>
		<ul>
			<li>
				<p class="a">
					<select name="selected_widget">
						<option loop="$widget_list => $list_widget_info" value="{$list_widget_info->widget}">{$list_widget_info->title}</option>
					</select>
					<input type="submit" value="{$lang->cmd_select}" />
				</p>
			</li>
		</ul>
	</form>
</div>
<div class="x" style="padding: 0 10px;">
	<h2 class="h2">{$widget_info->title}</h2>
	<p>{$widget_info->description}</p>

	<h3 class="h3">{$lang->cmd_generate_code}</h3>
	<p>{$lang->about_widget_code_in_page}</p>

	<form class="form" action="./" method="post" id="fo_widget">
		<input type="hidden" name="module" value="widget" />
		<input type="hidden" name="module_srl" value="{$module_srl}" />
		<input type="hidden" name="widget_sequence" value="" />
		<input type="hidden" name="style" value="float:left;width:100%;margin:none;padding:none;" />
		<input type="hidden" name="widget_padding_left" value="" />
		<input type="hidden" name="widget_padding_right" value="" />
		<input type="hidden" name="widget_padding_top" value="" />
		<input type="hidden" name="widget_padding_bottom" value="" />
		<input type="hidden" name="selected_widget" value="{$widget_info->widget}" />

		<include target="widget_generate_code.include.html" />

		<div class="btnArea">
			<span class="btn small"><input type="submit" value="{$lang->cmd_generate_code}" /></span>
		</div>
	</form>

	<include target="widget_generate_code.filebox.html" />
	<include target="widget_generate_code.multilang.html" />
	<include target="widget_generate_code.multilang.textarea.html" />
</div>
